Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0 <input type="range" id="a" value="50">100 +<input type="number" id="b" value="50"> =<output id="myOutput" name="x" for="a b"></output> </form> <p>Click the button to set the result of the calculation above to "150".</p> <p><strong>Note:</strong> The output element is not supported in Internet Explorer.</p> <button type="button" onclick="myFunction()">Try it</button> <p id="demo"></p> <script> function myFunction() { document.getElementById("myOutput").value = "150"; } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_output_value by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:34:48 GMT --> </html>
Result:
Try it Yourself - © w3schools.com